/*
package com.tz.listener;

import com.tz.WebAppConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

*/
/**
 * Created by Administrator on 2016/7/28.
 *//*

//@WebListener
public class MyContextLoaderListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent event) {
*/
/*        System.out.println("Listener  run ,, ,, ");
        //获取ApplicationContext
        ApplicationContext ac = new AnnotationConfigApplicationContext(WebAppConfig.class);
        ServletContext application = event.getServletContext();
        application.setAttribute("ac",ac);*//*

    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {

    }
}
*/
